﻿using System;
using System.ComponentModel;

namespace Spencen.Mobile.Markup
{
    public class XamlElementProperty : XamlElementBase
    {
        public XamlElementProperty( XamlNode parent, string name, string @namespace ) : base( parent, name, @namespace )
        {
        }

        public PropertyDescriptor PropertyDescriptor { get; set; }

        public override string MemberName
        {
            get { return Name.Substring( Name.IndexOf( '.' ) + 1 ); }
        }
    }
}
